
package com.techshine.common.base;

import java.util.List;

public interface BaseService <Entity> {

    Entity queryByKey(String id) throws Exception;
    
    List<Entity> queryListByPage(Entity entity) throws Exception;
    
    void insert(Entity entity) throws Exception ;
    
    void insertSelective(Entity entity) throws Exception ;
  
    void update(Entity entity) throws Exception;
   
    void updateByKeySelective(Entity entity) throws Exception;
 
    void delete(Entity entity) throws Exception;
}
